package com.weizai.carshop.model.dto;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class QueryGoodsInfoDto {

    private Long cateId;

    private Integer sortByPrice;

    private Integer sortBySale;

    private Integer page;

    private Integer pageSize;

    private String keyword;

    public void validatePage() {
    	if(page == null) {
    		page = 1;
    	}
    	if(pageSize == null) {
    		pageSize = 10;
    	}
    }
}
